package subscription

type GetRadarSubscriptionConfigResponse struct {
	Id                int32    `json:"id"`
	IsLandOpen        int32    `json:"is_land_open"`
	LandUsage         []string `json:"land_usage"`
	IsBuildingOpen    int32    `json:"is_building_open"`
	BuildingType      []string `json:"building_type"`
	IsSaleOpen        int32    `json:"is_sale_open"`
	SaleType          []string `json:"sale_type"`
	BidKeyword        []string `json:"bid_keyword"`
	WinbidKeyword     []string `json:"winbid_keyword"`
	BidKeywordExclude []string `json:"bid_keyword_exclude"`
	ProjectKeyword    []string `json:"project_keyword"`
	AreaCode          []string `json:"area_code"`
}

type SaveRadarSubscriptionConfigResponse struct {
	Success bool `json:"success"`
}

type GetSubscriptionPushConfigResponse struct {
	Id       int32  `json:"id"`
	Period   string `json:"period"`
	PushTime string `json:"push_time"`
	Email    string `json:"email"`
}

type SaveSubscriptionPushConfigResponse struct {
	Success bool `json:"success"`
}

type GetWxQrCodeResponse struct {
	AttentionStatus int32  `json:"attention_status"`
	QrCodeUrl       string `json:"qr_code_url"`
	SceneId         string `json:"scene_id"`
	UnionId         string `json:"union_id"`
}

type GetBindStatusResponse struct {
	AttentionStatus int32  `json:"attention_status"`
	OpenId          string `json:"open_id"`
	SceneId         string `json:"scene_id"`
	UnionId         string `json:"union_id"`
}

type GetRadarListResponse struct {
	Total    int32             `json:"total"`
	NewTotal int32             `json:"new_total"`
	MaxNum   int32             `json:"max_num"`
	List     []*RadarOpptyItem `json:"list"`
}

type RadarOpptyItem struct {
	Uid                     string          `json:"uid"`
	OpptyType               string          `json:"oppty_type"`
	BidSource               string          `json:"bid_source"`
	Title                   string          `json:"title"`
	DeveloperName           string          `json:"developer_name"`
	DeveloperOrganizingCode string          `json:"developer_organizing_code"`
	Suppliers               []*SupplierItem `json:"suppliers"`
	PublishDate             string          `json:"publish_date"`
	TakeLandDate            string          `json:"take_land_date"`
	OpeningDate             string          `json:"opening_date"`
	ProjectPlanBeginDate    string          `json:"project_plan_begin_date"`
	ProjectRealityBeginDate string          `json:"project_reality_begin_date"`
	ProjectPlanEndDate      string          `json:"project_plan_end_date"`
	ProjectRealityEndDate   string          `json:"project_reality_end_date"`
	OpptyStatus             string          `json:"oppty_status"`
	IsPriceGtAvg            int32           `json:"is_price_gt_avg"`
	IsNew                   int32           `json:"is_new"`
	ContactNum              int32           `json:"contact_num"`
	Contactor               []*ContactItem  `json:"contactor"`
	Label                   []string        `json:"label"`
	ProvinceCode            string          `json:"province_code"`
	Province                string          `json:"province"`
	CityCode                string          `json:"city_code"`
	City                    string          `json:"city"`
}

type SupplierItem struct {
	SupplierName           string `json:"supplier_name"`
	SupplierOrganizingCode string `json:"supplier_organizing_code"`
}

type ContactItem struct {
	CompanyName    string `json:"company_name"`
	OrganizingCode string `json:"organizing_code"`
	Name           string `json:"name"`
	PhoneNumber    string `json:"phone_number"`
	Position       string `json:"position"`
	SourceId       string `json:"source_id"`
	ViewTimes      int32  `json:"view_times"`
	IsRecommend    int32  `json:"is_recommend"`
}

type GetRadarPreCountResponse struct {
	Total  int32 `json:"total"`
	MaxNum int32 `json:"max_num"`
}

type BindOpenIdByCardResponse struct {
	IsNew bool `json:"is_new"`
}
